package com.mspbots.attendance.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mspbots.entry.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author billb
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "tenant_attendance_approve", autoResultMap = true)
public class TenantAttendanceApprove extends BaseEntity {

    private String comments;
    private LocalDateTime updateTime;
    private LocalDateTime approveTime;
    private Long approveUserId;
    private LocalDateTime logTimeUpdated;

    private Long tenantAttendanceId;
    private Long userId;
    private String status;

    private Long managerUserId;


    @Builder
    public TenantAttendanceApprove(String comments, LocalDateTime updateTime,
                                   LocalDateTime approveTime, Long approveUserId,
                                   LocalDateTime logTimeUpdated, String action,
                                   String subAction, Long tenantAttendanceId, Long userId, String status, Long managerUserId) {
        this.comments = comments;
        this.updateTime = updateTime;
        this.approveTime = approveTime;
        this.approveUserId = approveUserId;
        this.logTimeUpdated = logTimeUpdated;
        this.tenantAttendanceId = tenantAttendanceId;
        this.userId = userId;
        this.status = status;
        this.managerUserId = managerUserId;
    }
}
